/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

import java.util.Calendar;

/**
 * <p>Project: jse2303 - Ex10
 * <p>Powered by webrx On 2023-07-10 09:17:15
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex10 {
    public static void main(String[] args) {
        //几天前 几天后新日期
        System.out.printf("%tF %<tT%n", System.currentTimeMillis() - (5 * 24 * 60 * 60 * 1000));
        System.out.printf("%tF %<tT%n", System.currentTimeMillis() + (10 * 24 * 60 * 60 * 1000));
        System.out.printf("%tF %<tT%n", System.currentTimeMillis() + (2 * 60 * 60 * 1000));
        System.out.printf("%tF %<tT%n", System.currentTimeMillis() - (100 * 60 * 1000));

        //获取某日历是星期几
        Calendar c = Calendar.getInstance();
        c.set(2023, Calendar.JULY, 12);
        System.out.printf("%tA", c);
    }
}
